package cn.rkylin.oms.ectrade.dao;

import java.util.List;
import java.util.Map;

import cn.rkylin.oms.ectrade.domain.EcTrade;
import cn.rkylin.oms.ectrade.vo.EcTradeVO;
import cn.rkylin.oms.ectrade.vo.UnpayQtyVO;

/**
 * 订单数据访问层接口
 * @author zhangheng
 * @version 1.0
 * @created 13-2月-2017 09:11:13
 */
public interface IEcTradeDAO {
    /**
     * 查询订单
     *
     * @param ectradeVO
     */
    public List<EcTradeVO> findByWhere(EcTradeVO ectradeVO) throws Exception;

    /**
	 * 获取分单明细
	 * 
	 * @param shopVO
	 */
	public EcTradeVO findById(String ecTradeId) throws Exception ;
	
	/**
	 * 查询订单
	 * @param pageStatement
	 * @param reqMap
	 * @return
	 * @throws Exception
	 */
	public List<EcTradeVO> findTradeList(String pageStatement, Map reqMap) throws Exception;
	
	/**
     * 创建分担规则详情
     * 
     * @param shop
     */
    public int update(EcTrade ecTrade) throws Exception ;
    
    /**
     * 创建分担规则详情
     * 
     * @param shop
     */
    public int insert(EcTrade ecTrade) throws Exception ;

	/**
	 * 获取未付款数
	 * @param unpayQtyVO
	 * @return
	 * @throws Exception
	 */
    public UnpayQtyVO getUnpayQty(UnpayQtyVO unpayQtyVO) throws Exception;
}
